AI-CDSS with Chain-of-Thought Reasoning and Stepwise Medication